﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wallpaper.Models.Interfaces;

namespace Wallpaper.Models.Entities
{
    /// <summary>
    /// 标签表
    /// </summary>
    public class Tags : BaseEntity, IHasTimestamps
    {


        /// <summary>
        /// 标签名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }


        /// <summary>
        /// 标签使用次数
        /// </summary>
        public int UsageCount { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime? UpdatedAt { get; set; }

        public bool IsDeleted { get; set; }

        public virtual ICollection<WallpaperTag> WallpaperTags { get; set; } = new List<WallpaperTag>();


    }
}
